<?php /* Smarty version 2.6.26, created on 2014-12-16 20:33:59
         compiled from info.html */ ?>
<p>Update Info</p>

<section class="content">

                    <div class='row'>
                            <div class='box-info'>
                                <div class='box-header'>

                                    <div class="pull-right box-tools">
                                        <!--button class="btn btn-default btn-sm" data-widget='collapse' data-toggle="tooltip" title="Collapse"><i class="fa fa-minus"></i></button-->
                                         
                                        <!--button class="btn btn-default btn-sm" data-widget='remove' data-toggle="tooltip" title="Remove"><i class="fa fa-times"></i></button-->
                                    </div><!-- /. tools -->
                                </div><!-- /.box-header -->
                                <div class='box-body pad'>
                                    <form action="info.php?action=save" method="post">
                                        <textarea class="textarea" name="artikel" style="width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"></textarea>
                                        <div class="form-group">
                                            <input class="form-control" name="judul" type="text" autofocus>
                                        </div>
                                        <div class="form-group">          
                                            <div class="input-group">
                                                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                                                <input type="date" id="tgl" class="form-control" name="tanggal" id="tanggal">
                                            </div>
                                            <button type="submit" class="btn btn-primary">Save</button>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div><!-- ./row -->
<div class="container">
<div class="box-body table-responsive">
                                    <table id="example2" class="table table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <th>artikel</th>
                                                <th>judul</th>
                                                <th>tanggal</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                          <?php $_from = $this->_tpl_vars['info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['info']):
?>
                                          <tr>
                                                 <td><?php echo $this->_tpl_vars['info']['artikel']; ?>
</td>
                                                 <td><?php echo $this->_tpl_vars['info']['judul']; ?>
</td>
                                                 <td><?php echo $this->_tpl_vars['info']['tanggal']; ?>
</td>
                                                 <td><a href="info.php?action=edit&id=<?php echo $this->_tpl_vars['info']['judul']; ?>
"><span class="glyphicon glyphicon-edit"></span> Edit</button>
                                                 <!--<button class="btn btn-info">tambah</button>-->
                                                  <a href="info.php?action=delete&id=<?php echo $this->_tpl_vars['info']['judul']; ?>
"><span class="glyphicon glyphicon-trash"></span> hapus</a></
                                                 
                                                
                                                </tr>
                                          <?php endforeach; endif; unset($_from); ?>
                                        </tbody>
                                     </table>
                                </div>
                                </div>

        <script src="template/css/ckeditor.js"></script>
        <script src="../../js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
 </section>

